# -*- coding:utf-8 -*-

__author__ = 'Kalyugin Pavel'

import pytest


def pytest_addoption(parser):
    parser.addoption("--browser", action="store", default="chrome", help="browser type")
    parser.addoption("--base_url", action="store",
                     default="http://ec2-54-229-95-103.eu-west-1.compute.amazonaws.com/php4dvd/", help="base URL")

@pytest.fixture(scope="module")
def browser_type(request):
    return request.config.getoption("--browser")

@pytest.fixture(scope="module")
def base_url(request):
    return request.config.getoption("--base_url")